<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

<link href='<c:url value="/insdep/easyui_full.css"/>' rel="stylesheet"
	type="text/css">

<script type="text/javascript"
	src='<c:url value="/insdep/jquery-1.11.3.min.js"/>'></script>
<script type="text/javascript"
	src='<c:url value="/insdep/jquery.easyui-1.5.2.min.js"/>'></script>
<script type="text/javascript"
	src='<c:url value="/insdep/insdep-extend.min.js"/>'></script>
<title>编辑合同信息</title>
</head>
<body>
<script type="text/javascript">
$(function(){
	/**
	 *关闭编辑窗口
	 */
	$("#re_no").linkbutton({
		onClick:function(){
			$("#RCwin").window('close');
		}
	});
	
	$("#re_save").linkbutton({
		 onClick:function(){
			 $('#add_renew_form').form({    
				    url:'saveUnsignedInfo',    
				    onSubmit: function(param){    
				    	//param.roleState= $("#sstt").switchbutton("options").checked?1:0;
				    	
				    	return $(this).form('enableValidation').form('validate');//验证
				    },    
				    success:function(data){ 
				    	/**
				    	 *操作结果
				    	 */
				        if(data) {
							$("#RCwin").window('close');
							$('#Renew_Contract_table').datagrid('reload');
							//提示信息
							$.messager.show({
								title:'提示',
								msg:'保存信息成功！', 
							    timeout:1000,  
								showType:'show',
								style:{
						            right:'',  
						            bottom:'' 
								}
							});
				        } else{
				        	//提示信息
				        	$("#RCwin").window('close');
							$('#Renew_Contract_table').datagrid('reload');
				        	$.messager.show({
								title:'提示',
								msg:'保存信息失败', 
							    timeout:1000,  
								showType:'show',
								style:{
						            right:'',  
						            bottom:'' 
								}
							});
				        }   
				    }    
				});    
				$('#add_renew_form').submit();  
		 }
	 });
	
})
</script>
	<div class="easyui-layout" fit="true">
		<div data-options="region:'center'" align="center">
			<form id="add_renew_form" method="post">
				<table class="table " style="margin: 10px; width: 85%" border="0"
					cellpadding="0" cellspacing="0" >
					<thead>
						<tr align="center">
							<th colspan="5" style="font-size: 17px">合同信息录入表</th>
						</tr>
					</thead>
					<tbody>
						<tr align="left">
							<td colspan="5" style="font-size: 15px">合同信息</td>
						</tr>
						<tr>
							<td>
								<input name="empId" type="hidden"></input>
								<!-- <input name="contractId" type="hidden"></input> -->
								<!-- employs_name 录用人姓名 -->
								<input name="empName" class="easyui-textbox" labelAlign='right'
									readonly="true" style="width: 46%" label="姓名：  " labelWidth="110px">
								<!-- contractType 合同类型  -->
								<select id="contractType" name="contractType"  class="easyui-combobox" style="width: 49%;" labelAlign="right" label="合同类型：" editable="false" labelWidth="110px">
									<option checked value="fixtimecontract">固定期限劳动合同</option>
									<option value="nofixtimecontract">无固定期限劳动合同</option>
									<option value="dispatchcontract">劳务派遣合同</option>
									<option value="nodaycontract">非全日制用工合同</option>
								</select>
							</td>
						</tr>
						<tr>
							<td>
								<!-- 签约时间  -->
								<input name="contractSignedtime" class="easyui-datebox" labelAlign='right'
									required style="width: 46%;" label="签约时间：" editable="false" labelWidth="110px">
								<!-- 生效时间  -->
								<input name="contractEffectivetime" class="easyui-datebox" labelAlign='right'
									 required style="width: 49%;" label="生效时间：" editable="false" labelWidth="110px">
								
							</td>
						</tr>
						<tr>
							<td>
								<!-- 试用结束时间  -->
								<input name="contractTrialtime" class="easyui-datebox" labelAlign='left'
									required style="width: 46%;" label="试用结束时间：" editable="false" labelWidth="110px">
								<!-- 失效时间  -->
								<input name="contractDeadtime" class="easyui-datebox" labelAlign='right'
									 required style="width:49%;" label="失效时间：" editable="false" labelWidth="110px"> 
							</td>
						</tr>
						<tr>
							<td>
							<!-- 合同备注  -->
								<input name="contractExplain" class="easyui-textbox" labelAlign='right'
									multiline="true" style="width: 96%;height: 70px" label="合同备注："> 
							</td>
						</tr>
						<tr>
							<td style="text-align: center;">
								<a id="re_save" class="easyui-linkbutton" 
									data-options="iconCls:'icon-submit',text:'保存'"></a>
								<a id="re_no" class="easyui-linkbutton"
									data-options="iconCls:'icon-cancel',text:'取消'"></a>
							</td>
						</tr>
					</tbody>

				</table>
			</form>
		</div>
	</div>
</body>
</html>